package com.g9.blog.repository;

import com.g9.blog.entity.Article;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: Graycat
 * @Date: 2020/9/11 10:24
 * Create by lwj.
 */
public interface ArticleRepository extends JpaRepository<Article,Integer> {

    List<Article> findAllByUserId( int userId );

    List<Article> findAllById( int articleId );
}
